package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.domain.entity.TInterference;
import com.ruoyi.system.mapper.InterferenceDataMapper;
import com.ruoyi.system.service.IInterferenceDataService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * @Auther: Stanley.Y
 * @Date: 2024/7/8
 * @Description:
 * @Version 1.0.0
 */

@Service
public class InterferenceDataServiceImpl implements IInterferenceDataService {
    private static final Logger log = LoggerFactory.getLogger(InterferenceDataServiceImpl.class);

    @Autowired
    private InterferenceDataMapper interferenceDataMapper;

    @Override
    public List<TInterference> getInterferenceDataList() {
        List<TInterference> result = interferenceDataMapper.getInterferenceDataList();
        return result;
    }

    /**
     * 查询干扰源信息
     *
     * @param id 干扰源数据ID
     * @return 干扰源信息
     */
    @Override
    public TInterference selectInterferenceDataById(String id) {
        return interferenceDataMapper.selectInterferenceDataById(id);
    }

    /**
     * 查询干扰源数据列表
     *
     * @param interference 干扰源数据对象
     * @return 干扰源数据集合
     */
    @Override
    public List<TInterference> selectInterferenceDataList(TInterference interference) {
        return interferenceDataMapper.selectInterferenceDataList(interference);
    }

    /**
     * 新增干扰源数据
     *
     * @param interference 干扰源数据对象
     * @return 新增处理结果
     */
    @Override
    public int insertInterferenceData(TInterference interference) {
        return interferenceDataMapper.insertInterferenceData(interference);
    }

    /**
     * 修改干扰源数据
     *
     * @param interference 干扰源数据对象
     * @return 修改处理结果
     */
    @Override
    public int updateInterferenceData(TInterference interference) {
        return interferenceDataMapper.updateInterferenceData(interference);
    }

    /**
     * 删除干扰源数据对象
     *
     * @param id 干扰源数据id
     * @return 删除操作结果
     */
    @Override
    public int deleteInterferenceDataById(String id) {
        return interferenceDataMapper.deleteInterferenceDataById(id);
    }

    /**
     * 批量删除干扰源信息
     *
     * @param ids 需要删除的干扰源数据id
     * @return 批量删除处理结果
     */
    @Override
    public int deleteInterferenceDataByIds(String[] ids) {
        return interferenceDataMapper.deleteInterferenceDataByIds(ids);
    }
}
